<div class="table-header mt20 clearfix">
    <span class="fl lh30 f14">佣金列表</span>
    <div class="fr btn-group">

        <a href="javascript: void(0)" class="btn permission p-50030605-01-block" ng-click="brokerage.showBatchDealApprove()">批量审定</a>
        <a href="javascript: void(0)" class="btn btn-yellow permission p-50030605-99-block"
           ui-dialog="成交佣金导入"
           ui-dialog-url="dialog/import.html"
           ui-dialog-init="initImport($data)"
           ui-dialog-ok="importData($data)">导入佣金</a>
        <a href="javascript: void(0)" class="btn btn-yellow permission p-50030605-99-block" ng-click="baseData.exportData()">导出</a>
    </div>
</div>
<div id="grid" class="table-wrap mt10">
    <table width="100%">
        <thead>
            <tr>
                <th style="min-width:50px;padding-top: 3px;">
                    <input type="checkbox" ui-checkbox="序号"
                           ng-change="query.updateCheckAll()"
                           ng-model="query.checkAll">
                </th>
                <th style="min-width:80px">客户信息</th>
                <th style="min-width:140px">经纪人信息</th>
                <th style="min-width:130px">身份信息</th>
                <th style="min-width:120px">成交房间信息</th>
                <!-- <th style="min-width:115px">房款信息</th> -->
                <th style="min-width:80px">成交金额</th>
                <th style="min-width:90px">成交佣金</th>
                <th style="min-width:110px">申请结佣时间</th>
                <th style="min-width:100px">操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="record in query.data"
                ng-mouseover="record.hover = true"
                ng-mouseleave="record.hover = false">
                <td height="80">
                    <input type="checkbox" ui-checkbox="{{((query.pageIndex - 1) * query.pageSize) + $index + 1}}"
                           ng-change="query.updateCheck(record)"
                           ng-model="record.checked">
                </td>
                <td>
                    <p><span ng-bind="record.cst_name"></span>（<span ng-bind="record.genderText"></span>）</p>
                    <p ng-bind="record.mobile_tel"></p>
                    <p class="ng-hide union-name" ng-show="!!record.lmInfoArr">联名购房</p>
                </td>
                <td>
                    <p><span ng-bind="record.broker_name"></span>（<span ng-bind="record.broGenderText"></span>）</p>
                    <p><span ng-bind="record.broker_tel"></span></p>
                    <p class="c-gray">证件号码：<br><span ng-bind="record.cre_no"></span></p>
                </td>
                <td>
                    <p><span ng-bind="record.Text"></span></p>
                    <p class="c-gray ng-hide" ng-show="!!record.BelongsCompanyText">所属公司：<span ng-bind="record.BelongsCompanyText"></span></p>
                    <p class="c-gray ng-hide" ng-show="baseData.isAgency == 1">门店邀请码：<span ng-bind="record.store_code"></span></p>
                </td>
                <td>
                    <p ng-bind="record.product_type"></p>
                    <p ng-bind="record.room"></p>
                    <p>付清房款首期：<span ng-bind="record.ispay_sq"></span></p>
                    <p>已交房款比例：<span ng-bind="record.cj_percent"></span></p>
                </td>
                <!-- <td>
                    
                </td> -->
                <td>
                    <p ng-bind="record.cj_price | number"></p>
                </td>
                <td>
                    <p class="ng-hide" ng-show="!!record.brokerage1">第1笔：<span ng-bind="record.brokerage1 | number:2"></span>元</p>
                    <p class="ng-hide" ng-show="!!record.brokerage2">第2笔：<span ng-bind="record.brokerage2 | number:2"></span>元</p>
                    <p class="ng-hide" ng-show="!!record.brokerage3">第3笔：<span ng-bind="record.brokerage3 | number:2"></span>元</p>
                    <p class="ng-hide c-gray" ng-show="!!record.brokerage1 || !!record.brokerage2 || !!record.brokerage3 ">合计：<span ng-bind="record.brokerageTotalAmount | number"></span>元</p>
                    <p class="ng-hide union-name ta-c" style="width:4em;" ng-if="!baseData.isAgency" ng-show="0==record.b_commision_way">积分</p>
                </td>

                <td>
                    <p ng-bind="record.check_date | strdate"></p>
                </td>
                <td>
                    <p class="ng-hide" ng-show="record.hover">
                        <a href="javascript: void(0)" class="c-orange permission p-50030605-00-inline-block"
                           ui-dialog="查看佣金详情"
                           ui-dialog-data="record"
                           ui-dialog-cache="false"
                           ui-dialog-show="onShowBrokerageDetails(record,$dialog,$dialogScope)"
                           url="dialog/view_detail.html">查看</a>
                        <a href="javascript: void(0)" class="c-orange permission p-50030605-01-inline-block"
                           ui-dialog="佣金审定"
                           data="record"
                           ui-dialog-cache="false"
                           ok="brokerage.dealApprove($data)"
                           url="dialog/deal-approve.html">审定</a>
                        <a href="javascript: void(0)" class="c-orange permission p-50030605-01-inline-block"
                           ui-dialog="佣金审定不通过"
                           data="record"
                           ui-dialog-cache="false"
                           ok="brokerage.dealApproveFail($data)"
                           url="dialog/deal-approve-fail.html">不通过</a>
                    </p>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="no-data ng-hide" ng-show="!query.hasData"><span>暂无数据</span></div>
</div>

<div ng-include src="'footer.html'"></div>
